﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StockEngine
{
    public class StockInfo
    {
        private DateTime date;
        private double dailyMax;
        private double dailyLow;
        private double openStockMarketPrice;
        private double closeStockMarketPrice;
        private int volume;
        private double adjCloseStockMarketPrice;

        //date,open,high,low,close,volume,adj close
        public StockInfo(DateTime date, double openStockMarketPrice, double dailyMax,
            double dailyLow, double closeStockMarketPrice,
            int volume, double adjCloseStockMarketPrice)
        {
            this.date = date;
            this.dailyMax = dailyMax;
            this.dailyLow = dailyLow;
            this.openStockMarketPrice = openStockMarketPrice;
            this.closeStockMarketPrice = closeStockMarketPrice;
            this.volume = volume;
            this.adjCloseStockMarketPrice = adjCloseStockMarketPrice;
        }

        public DateTime Date
        {
            get { return date; }
        }

        public double DailyMax
        {
            get { return dailyMax; }
        }

        public double DailyLow
        {
            get { return dailyLow; }
        }

        public double OpenStockMarketPrice
        {
            get { return openStockMarketPrice; }
        }

        public double CloseStockMarketPrice
        {
            get { return closeStockMarketPrice; }
        }

        public int Volume
        {
            get { return volume; }
        }

        public double AdjCloseStockMarketPrice
        {
            get { return adjCloseStockMarketPrice; }
        }
    }
}
